package com.yellowpage.tool.messageutil;


public class RequestSms {

	private String channelno;
	private String queryNum; // 查询号码
	private String content;

	public boolean isValidObject(RequestSms request) throws Exception {
		// 校验 RequestSms的有效性
		boolean bool = false;
		if (null == request.getQueryNum() || "".equals(request.getQueryNum().trim())
				|| request.getQueryNum().equals(null)) {
			bool = false;
			throw new Exception(ResultCode.MUSTISNULL);
		} else {
			bool = true;
		}
		return bool;
	}

	public String getChannelno() {
		return channelno;
	}

	public void setChannelno(String channelno) {
		this.channelno = channelno;
	}

	public String getQueryNum() {
		return queryNum;
	}

	public void setQueryNum(String queryNum) {
		this.queryNum = queryNum;
	}

	public RequestSms() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public RequestSms(String channelno, String queryNum, String content) {
		super();
		this.channelno = channelno;
		this.queryNum = queryNum;
		this.content = content;
	}

	@Override
	public String toString() {
		return "RequestSms [channelno=" + channelno + ", queryNum=" + queryNum
				+ ", content=" + content + "]";
	}


}
